package overload;

public class Test {
	
	public static void main(String[] args) {
		Animal[] arr = new Animal[] { new Animal(), new Horse() };
		Test test = new Test();
		for (int i = 0; i < arr.length; i++) {
			test.overload(arr[i]);
		}
	}

	public void overload(Animal animal) {
		System.out.println("animal");
	}

	public void overload(Horse horse) {
		System.out.println("horse");
	}
}
